import request from '@/utils/request';

// 申请审批人员分析
export function getWorkflownumberdistribution(params) {
    return request('/api/oa/v1/workflow/analyse/workflownumberdistribution', {
        method: 'POST',
        data: params
    });
}

// 申请发起人排行
export function getApplypeoplesweat(params) {
    return request('/api/oa/v1/workflow/analyse/applypeoplesweat', {
        method: 'POST',
        data: params
    });
}

// 审批耗时分析
export function getApprovaltimetakingdistribution(params) {
    return request(
        '/api/oa/v1/workflow/analyse/approvaltimetakingdistribution',
        {
            method: 'POST',
            data: params
        }
    );
}

// 流程审批人(全部)排行
export function getProcesspeopleSweat(params) {
    return request('/api/oa/v1/workflow/analyse/processpeoplesweat', {
        method: 'POST',
        data: params
    });
}

// 审批申请类型分析
export function getApplicationtypedistribution(params) {
    return request('/api/oa/v1/workflow/analyse/applicationtypedistribution', {
        method: 'POST',
        data: params
    });
}

// 常用流程(全部)排行
export function getCommonworkflowdistribution(params) {
    return request('/api/oa/v1/workflow/analyse/commonworkflowdistribution', {
        method: 'POST',
        data: params
    });
}

// 流程状态分析
export function getWorkflowstatusdistribution(params) {
    return request('/api/oa/v1/workflow/analyse/workflowstatusdistribution', {
        method: 'POST',
        data: params
    });
}

// 发起公司部门排行
export function getWorkfloworgdistribution(params) {
    return request('/api/oa/v1/workflow/analyse/workfloworgdistribution', {
        method: 'POST',
        data: params
    });
}
